package com.packet.controller;

import com.packet.pojo.Examine;
import com.packet.service.FinanceCorrectTripService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @className:ToStaffController
 * @Author:wallet_packet Date:2023-12-21 14:34
 * @Describe:
 */
@Controller
public class ToStaffController {

    @Autowired
    FinanceCorrectTripService financeCorrectTripService;


    @RequestMapping("/finance/getExamine/{bid}")
    @ResponseBody
    public Examine getExamines(@PathVariable("bid") Integer bid){
        return financeCorrectTripService.getExamineByBid(bid);
    }

}
